# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=newsflash
pkgver=1.5.1
pkgrel=1
pkgdesc="An rss feed reader that supports various web based services"
url="https://gitlab.com/news-flash/news_flash_gtk/"
arch="all !s390x !riscv64" # cargo, rust, libhandy not found
license="GPL-3.0-only"
makedepends="meson bash rust cargo webkit2gtk-dev libhandy1-dev sqlite-dev gettext-dev openssl1.1-compat-dev"
source="https://gitlab.com/news-flash/news_flash_gtk/-/archive/$pkgver/news_flash_gtk-$pkgver.tar.gz"
options="!check" # no tests
builddir="$srcdir/news_flash_gtk-$pkgver"

build() {
	abuild-meson . output
	meson compile -j 2 -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	rm -rf "$pkgdir"/home
}

sha512sums="
b15e12567c585281474a6a09dbeb83dd860ee626b140d0194aeb311b0cfe3e3dad2c92ffa89f2f76b18bb2f230875910834041b3dc18ca3199b5ad4913886e5d  news_flash_gtk-1.5.1.tar.gz
"
